package com.mango.http;

import java.util.Map;

public class R {
	/**
	 * 返回html
	 * @param value
	 * @return
	 */
	public static HtmlDataSet html(String value){
		return new HtmlDataSet(value);
	}
	
	public static JsonDataSet json(){
		return new JsonDataSet();
	}
	
	public static FileDataSet file(String value){
		return new FileDataSet(value);
	}

	public static DataSet freemarker(String value,Map<String,Object> data) {
		return new FreemarkerDataSet(value,data);
	}
}
